import request from '@/utils/request'

// 查询门店店员列表
export function listStoreStaff(query) {
  return request({
    url: '/system/storeStaff/list',
    method: 'get',
    params: query
  })
}

// 查询门店店员详细
export function getStoreStaff(id) {
  return request({
    url: '/system/storeStaff/' + id,
    method: 'get'
  })
}

// 新增门店店员
export function addStoreStaff(data) {
  return request({
    url: '/system/storeStaff',
    method: 'post',
    data: data
  })
}

// 修改门店店员
export function updateStoreStaff(data) {
  return request({
    url: '/system/storeStaff',
    method: 'put',
    data: data
  })
}

// 删除门店店员
export function delStoreStaff(id) {
  return request({
    url: '/system/storeStaff/' + id,
    method: 'delete'
  })
}
